package com.myfoon.model.entryprocessor;

import com.tangosol.util.InvocableMap;
import com.tangosol.util.processor.AbstractProcessor;

import java.util.List;

public class EventAttachCounter extends AbstractProcessor {
    public EventAttachCounter() {
    }

    public Object process(InvocableMap.Entry entry) {
        if (entry.getValue() == null) {
            return 0;
        }
        else {
            return ((List<Long>)entry.getValue()).size();
        }
    }
}
